import {http} from '@zkwq/business'

export const EditCart = (params) => http.post('/yundianApi/cart/v1/edit',params);
export const BatchCarts = (params) => http.post('/yundianApi/cart/v1/batchCart',params);
export const ListCarts = (params) => http.post('/yundianApi/cart/v1/list',params);
export const SetIsOrder = (ids) => http.postForm('/yundianApi/cart/v1/setIsOrder',{ids:ids});
export const DeleteCart = (id) => http.get('/yundianApi/cart/v1/delete',{id:id});
export const ClearAllCarts = (userId) => http.get('/yundianApi/cart/v1/clearAll',{userId:userId});

